<?php
namespace Api\Controller;
use Think\Controller;
class ActivityController extends Controller {
    public function getActivity(){

        // $m_id = $_GET['m_id'];

        $activity = M('activity');
        $data = $activity -> order("activity_id")->select();

        echo json_encode($data);
         echo "<br>";
         

    }
    public function activitydetail(){
      $activity_id=$_GET['activity_id'];
      $activitymodel=M('activity');
      $activity=$activitymodel->find($activity_id); 
      $this->activity=$activity;
      exit(json_encode($activity));
    } 

  
}

?>